package com.example.multipledatasourcesdemo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/14 17:20
 */
@Data
@TableName(value = "t_user")
@EqualsAndHashCode(callSuper = false)
public class User {

    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("code")
    private String code;

    @TableField("name")
    private String name;
}
